package ory

import (
	"context"
	client "github.com/ory/kratos-client-go"
)

func NewOauthkeeper(ctx context.Context, url string) *Kratos {
	configuration := client.NewConfiguration()
	configuration.Servers = []client.ServerConfiguration{
		{
			URL: url,
		},
	}

	return &Kratos{
		ctx:    ctx,
		client: client.NewAPIClient(configuration),
	}
}
